﻿using System;
using System.Net.DnsToolkit.Packet;

namespace System.Net.DnsToolkit.Serializer {
    /// <summary>
    /// Write RR into object
    /// </summary>
    public interface IRRWriter<T> {

        /// <summary>
        /// Writes a RR into destination object
        /// </summary>
        /// <param name="destination"></param>
        /// <param name="rr"></param>
        void Write(T destination, IRR rr, ICompressionContext cc);

    }
}
